package com.fescoservice.model;

/**
 * TSeekerWorkExpId entity. @author MyEclipse Persistence Tools
 */

public class SeekerWorkExpId implements java.io.Serializable {

	// Fields

	private Long expId;
	private Long userId;
	private String language;

	// Constructors

	/** default constructor */
	public SeekerWorkExpId() {
	}

	/** full constructor */
	public SeekerWorkExpId(Long expId, Long userId, String language) {
		this.expId = expId;
		this.userId = userId;
		this.language = language;
	}

	// Property accessors

	public Long getExpId() {
		return this.expId;
	}

	public void setExpId(Long expId) {
		this.expId = expId;
	}

	public Long getUserId() {
		return this.userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getLanguage() {
		return this.language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof SeekerWorkExpId))
			return false;
		SeekerWorkExpId castOther = (SeekerWorkExpId) other;

		return ((this.getExpId() == castOther.getExpId()) || (this.getExpId() != null
				&& castOther.getExpId() != null && this.getExpId().equals(
				castOther.getExpId())))
				&& ((this.getUserId() == castOther.getUserId()) || (this
						.getUserId() != null
						&& castOther.getUserId() != null && this.getUserId()
						.equals(castOther.getUserId())))
				&& ((this.getLanguage() == castOther.getLanguage()) || (this
						.getLanguage() != null
						&& castOther.getLanguage() != null && this
						.getLanguage().equals(castOther.getLanguage())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getExpId() == null ? 0 : this.getExpId().hashCode());
		result = 37 * result
				+ (getUserId() == null ? 0 : this.getUserId().hashCode());
		result = 37 * result
				+ (getLanguage() == null ? 0 : this.getLanguage().hashCode());
		return result;
	}

}